import request from '@/utils/request'

// 点赞发布内容
export const createLike = (data: { publish_id: number }) => {
  return request({
    url: '/publish/like/create',
    method: 'POST',
    data
  })
}

// 取消点赞
export const deleteLike = (data: { publish_id: number }) => {
  return request({
    url: '/publish/like/delete',
    method: 'POST',
    data
  })
}

// 获取点赞列表
export const getLikeList = (data: { publish_id: number; page?: number; limit?: number }) => {
  return request({
    url: '/publish/like/list',
    method: 'POST',
    data
  })
}